home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
E-Education
/
(c)ed5.d64
/
p'blem p'nouns
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2009-01-03
|
8KB
|
237 lines
1 GOTO910
2 PRINT"x[169][141][169][141]X` [234][255][169][255][133][145]L4[234]x[169]1[141][169][234][141]X`
3 [153]"xSTEPGINPUTSTOPSTEPINPUTONX` (null)(null)STEP(null)INPUTLISTLX(null)xSTEPUINPUTSTOPSTEP(null)INPUTONX`
4 PRINT"xhhh[170]h[168]hhhhhhh[152]H[138]HX`
5 [153]"hhhhhhh`
6 PRINT"[160][255][200][132][251][169][216][133][252] [241][183][138][162][160][255][200][145][251][136][208][251][230][252][202][208][246]`
7 [153]"NEWCLOSE(null)LEFT$>(null)ON(null)LET(null)(null)(null)(null)(null)(null)MID$(null)(null)`
35 IFUW=0THENSYSUU,15
40 POKEUC,0:POKEUN,0:UR$="":UI$="":IFUL=0THENUL=39
45 GETUI$:IFUI$=""THEN45
50 UA=ASC(UI$):UR=LEN(UR$):IFUA=13ANDUR>0THENPOKEUC,1:PRINT" [157]";:GOTO75
55 IFUA=20THENON-(UR=0)GOTO45:UR$=LEFT$(UR$,UR-1):PRINT"[157] [157][157]";:GOTO45
60 IFUR=ULTHEN45
65 GOSUB95:UR$=UR$+UI$:PRINTUI$;:GOTO45
75 FORUI=URTO1STEP-1:IFMID$(UR$,UI,1)=" "THENNEXT
80 UR$=LEFT$(UR$,UI):PRINT:RETURN
95 IFLEN(US$)=0THEN110
100 FORUI=1TOLEN(US$):IFUI$<>MID$(US$,UI,1)THENNEXT:UI$=""
105 RETURN
110 IFUA=46THENRETURN
115 IFUA=32ANDUR<>0THENRETURN
120 IFUA>47ANDUA<58THENRETURN
125 IFUA>64ANDUA<91THENRETURN
130 IFUA<193ORUA>218THENUI$="":RETURN
135 IFPEEK(UT)=UU%THENUI$=CHR$(UA-128)
140 RETURN
155 UZ=0:US$=UJ$:UG$=UK$:UT$=UL$:UP=UJ:UL=UK:PRINT"[147]";:POKEUY,0:POKEUX,0
160 POKEUT,UV%:POKE251,0:POKE252,UF:POKE253,0:POKE254,US/256:SYSUV:SYSUU,15
165 POKEU1,U1%:POKEU2,U2%:POKEU3,U3%-1:POKEU4,U4%:GOTO35
300 REM DERIVED FROM COMMODORE ONTARIO EDUCATION PROJECT 1983
310 REM PROJECT DIRECTOR: FRANK WINTER
320 REM PROGRAM NAME: PROBLEM PRONOUNS
330 REM WRITTEN BY: S. MATCZUK
340 REM REVISED BY: SANDRA BLANKENFELDT
350 REM UPDATED BY: BILL CUMBERLAND
360 REM WHC 90:05:14
399 :
400 PRINT"[147]":POKEUT,UL%:IFUW=0THENPOKEUY,0:POKEUX,0:POKE646,3
405 PRINT" [201][206][211][212][210][213][195][212][201][207][206][211] [146]
410 [153]" (null)HIS PROGRAM IS INTENDED TO GIVE YOU"
420 [153]" PRACTICE WITH THE KINDS OF PRONOUNS"
430 [153]" THAT MANY STUDENTS OFTEN FIND DIFFICULT."
440 [153]" (null)LEASE READ EACH SENTENCE CAREFULLY,
450 PRINT" AND DECIDE ON THE CORRECT ANSWER A[146] OR B[146]."
460 GOSUB820:RETURN
499 :
500 REM <YES> SOUND
505 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
510 POKE54296,15:POKE54277,42:POKE54278,250
515 POKE54276,23:POKE54273,23:POKE54272,191
520 FORTM=1TO100:NEXT:POKE54276,32:FORT=1TO200:NEXT
525 POKE54296,0:RETURN
529 :
530 REM <NO> SOUND
535 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
540 POKE54296,15:POKE54277,18:POKE54278,242
545 POKE54276,33:POKE54273,4:POKE54272,48
550 FORTM=1TO300:NEXT:POKE54276,32:FORT=1TO400:NEXT
555 POKE54296,0:RETURN
559 :
560 REM <BLIP> SOUND
565 SS=54272:FOREE=SSTOSS+28:POKEEE,0:NEXT
570 POKE54296,7:POKE54277,42:POKE54278,250
575 POKE54276,23:POKE54273,23:POKE54272,191
580 FORTM=1TO30:NEXT:POKE54276,32:FORT=1TO50:NEXT
585 POKE54296,0:RETURN
590 FORT=1TO500:NEXT:RETURN
591 FORT=1TO1000:NEXT:RETURN
592 FORT=1TO2000:NEXT:RETURN
593 FORT=1TO3000:NEXT:RETURN
594 FORT=1TO4000:NEXT:RETURN
595 FORT=1TO5000:NEXT:RETURN
599 :
800 PRINT"[147]";:POKEUT,UU%:IFUW=0THENPOKEUY,0:POKEUX,O:POKE646,3
801 PRINT" A TPUG EDUCATIONAL PROGRAM ":GOSUB591
802 PRINT" [146]";
803 PRINT" [146]";
804 PRINT" PROBLEM PRONOUNS [146]";
805 PRINT" [146]";
806 PRINT" MODULE 1 [146]";
807 PRINT" [146]":GOSUB591:GOSUB560
808 PRINT" INSTRUCTIONS? Y/N"
809 GETR$:IFR$<>"Y"ANDR$<>"N" THEN 809
810 IFR$="Y"THEN GOSUB 400
811 PRINT"[147] AND AWAY WE GO!
812 [141]591:[141]500:[141] 591
813 [137]1000
820 [141]591:[141]560
822 [151]UN,0:[153][200](UD$,24);" (null)RESS (null)(null)ATNLENVAL PEEKATN(null) TO CONTINUECLOSEWAIT"
824 [161]UI$:[139]UI$[179][177]" "[167]824
826 [142]
830 [141]591:[141]560
835 [151]UN,0:[153][200](UD$,24);"PRINT PRESS SPACE BAR TO CONTINUECLOSEWAITLIST"
840 [161]UI$:[139]UI$[179][177]" "[167]840
845 [142]
850 UP[178]UP[170]1:[153]"LOAD"[200](UT$[170]UP$,21);[201](UP$[170]UG$[170][196](UP),18)
855 [153]" --------------------------------------"
860 [139]UH[178]0[167][153][200](UD$,24);[200](UP$,7);"ANSWER, THEN PRESS RETURNWAIT
865 UH=0:PRINT"":RETURN
900 UX$="H":US=32768:U1=196:U2=197:U3=198:U4=216:UC=167:UB=1024:UD=1084:UE=1105
901 UT=59468:UU%=12:UL%=14:UP%=1158:UN=158:POKE50003,0:UW=PEEK(50003):UF=PEEK(53)
902 IFUW=0THENUS=1024:U1=209:U2=210:U3=211:U4=214:UC=204:UB=2048:UX=53280:UD=2064
903 IFUW=0THENUT=53272:UU%=21:UL%=23:UP%=2151:UN=198:UY=53281:UU=2199:UE=2087
904 UC$=CHR$(155):UV=1214:IFUW=0THENUF=196:UV=2238
905 UD$="":UP$=" "
909 RETURN
910 GOSUB900:PRINT"[147]":PRINT"[160]":REM SHIFTED SPACE
916 DIMX$(20,3),UQ%(1000)
920 GOTO 800
999 :
1000 PRINT"[147]"UC$;:RESTORE:POKEUT,UU%:POKEUY,0:POKEUX,0
1090 RESTORE:R=0:W=0
1200 GOTO1320
1295 PRINT:PRINT" ANSWER A[146] OR B[146]."
1320 UT$=" PROBLEM PRONOUNS":UG$="QUESTION":UP=0:PRINT"[147]"
1340 FOR I=1TO20
1350 READ X$(I,1),X$(I,2),X$(I,3)
1360 NEXT I
1370 PRINT"[147] HERE ARE TWENTY QUESTIONS.":GOSUB591
1372 PRINT" GET READY ...":GOSUB560:GOSUB591
1374 PRINT" GO!":GOSUB500:GOSUB590
1380 REM PRINT" ? ";:US$="ABCDEFGHIJKLMNOPQRSTUVWXYZ. ":UL=10:GOSUB35:N$=UR$
1450 PRINT"[147]"
1525 Q=20
1530 FOR J=1TOQ
1540 LET I=INT(1+20*RND(TI))
1550 IFG>20THEN1540
1560 GOSUB850:PRINT" CHOOSE THE CORRECT PRONOUN A [146] OR B [146]."
1570 GOSUB 560
1590 PRINT" ";X$(I,1)
1600 PRINT" ? ";:US$="AB":UL=1:GOSUB35:R$=UR$
1610 IF R$=X$(I,2)THEN 1630
1620 IF R$<>X$(I,2)THEN1660
1630 PRINT
1640 GOSUB1690
1650 GOTO1670
1660 GOSUB1880
1670 NEXT J
1680 GOTO 2590
1690 PRINT
1700 LET R=R+1
1710 LET V = INT(1+10*RND(0))
1720 IFV<4 THEN1770
1730 IFV<8THEN1810
1740 PRINT" VERY GOOD, "N$"![155]"
1760 GOTO1830
1770 PRINT" YOU'RE DOING FINE, "N$".[155]"
1800 GOTO1830
1810 PRINT" YOU'VE GOT IT, "N$"!![155]"
1830 GOSUB500:GOTO591:RETURN
1850 PRINT"[147]"
1860 RETURN
1880 PRINT
1890 W=W+1
1900 PRINT"[150] SORRY, "N$", YOU'RE WRONG.":GOSUB530
1910 PRINT
1920 PRINT" THE CORRECT ANSWER IS "X$(I,2)".":GOSUB591:GOSUB560
1930 PRINT"[158]"
1940 PRINTX$(I,3)
1950 REM
1960 PRINT"[155]":GOSUB835
1970 PRINT"[147]"
1980 RETURN
1990 DATA" A.WHO/B.WHOM [146] DO YOU THINK YOU LIKE BEST?"
2000 DATA"B"
2010 DATA" BECAUSE WHOM [146] IS THE OBJECT OF THE VERB LIKE [146]."
2020 DATA" A.WHO / B.WHOM [146] DO YOU THINK WOULD READ TO US?"
2030 DATA"A"
2040 DATA" WHO [146] IS THE SUBJECT OF THE VERB WOULD READ[146]."
2050 DATA"HE ASKED A.WHO / B.WHOM [146] HAD ARRIVED DURING HIS ABSENCE."
2060 DATA"A"
2070 DATA" WHO [146] IS THE SUBJECT OF THE VERB HAD[160]ARRIVED [146]."
2080 DATA"HE BLAMED A.US / B.WE [146] ACCOUNTANTS FOR THE ERROR."
2090 DATA"A"
2100 DATA" OBJECT OF THE VERB BLAMED [146] IS REQUIRED."
2110 DATA"SHIP THE ORDER TO A.WHOEVER/B.WHOMEVER [146]IS IN CHARGE.
2120 [131]"A"
2130 [131]" WHOEVER WAIT IS THE SUBJECT OF THE VERB IS WAIT."
2140 [131]"YOU A.WHO / B.WHOM WAIT, I THINK,CALL ME YOUR FRIEND, HAVE LEFT ME."
2150 [131]"A"
2160 [131]" YOU IS SUBJECT OF HAVE LEFT WAIT; WHO WAIT OF THE VERB CALL WAIT."
2170 [131]"EVERYBODY AGREES TO VOTE FOR A.WHOEVERWAIT / B.WHOMEVERWAIT IS SELECTED.
2180 DATA"A"
2190 DATA" WHOEVER [146] IS THE SUBJECT OF THE VERB IS SELECTED [146]."
2200 DATA"WILL YOU AGREE TO RELEASE A.US / B.WE [146] WOMEN FROM JURY DUTY?"
2210 DATA"A"
2220 DATA" US [146] IS THE OBJECT OF A TO + A VERB [146] PHRASE TO RELEASE [146]."
2230 DATA"IT WAS A.HER / B.SHE [146] WHO WAS ACCUSED OF BREAKING IT."
2240 DATA"B"
2250 DATA" NOMINATIVE CASE REQUIRED AFTER THE NON- ACTION VERB WAS [146]."
2260 DATA"I DO NOT KNOW A.WHO / B.WHOM [146] YOU TOLD ABOUT THE MOVIE."
2270 DATA"B"
2280 DATA" WHOM [146] IS THE OBJECT OF THE VERB TOLD [146]."
2290 DATA"EVERYBODY PUTS OUT A.THEIR / B.HIS [146] BEST EFFORT ON EXAMS."
2300 DATA"B"
2310 DATA" THE ANTECEDENT EVERYBODY [146] ALWAYS TAKES A SINGULAR PRONOUN."
2320 DATA"IT IS A.I / B.ME [146] FROM WHOM HE WISHES TO HEAR AN APOLOGY.
2330 [131]"A"
2340 [131]" NOMINATIVE CASE ALWAYS FOLLOWS THE NON- ACTION VERB IS WAIT."
2350 [131]"IT GOES TO ME OR A.WHOMEVER/B.WHOEVER WAIT WANTS THE USED MATERIAL.
2360 DATA"B"
2370 DATA" WHOEVER [146] IS THE SUBJECT OF THE VERB WANTS [146]."
2380 DATA"IT GOES TO ME OR A.WHOEVER/B.WHOMEVER [146] YOU WANT TO HAVE IT."
2390 DATA"B"
2400 DATA" BOTH HER [146] AND WHOMEVER [146] ARE OBJECTS OF THE PREPOSITION TO [146]."
2410 DATA"TIM JONES, A.WHO/B.WHOM [146],I BELIEVE CAN BE TRUSTED, IS A GOOD MAN.
2420 [131]"A"
2430 [131]" WHO WAIT IS THE SUBJECT OF CAN BE TRUSTED WAIT."
2440 [131]"ANYBODY CAN BRING A.THEIR / B.HIS WAIT BOOKS TO CLASS."
2450 [131]"B"
2460 [131]" ANTECEDENT ANYBODY WAIT REQUIRES THE SINGULAR PRONOUN HIS WAIT."
2470 [131]"DONATE IT TO A.WHOEVER / B.WHOMEVER WAIT YOU WISH TO SELECT."
2480 [131]"B"
2490 [131]" WHOMEVER WAIT IS THE OBJECT OF THE PREPOSITION TO WAIT."
2500 [131]"YOU WILL GET IT FROM A.WHOEVER/B.WHOM-WAIT EVERWAIT YOU SEE AT THE DOOR.
2510 DATA"B"
2520 DATA" WHOMEVER [146] IS THE OBJECT OF THE PREPOSITION FROM[160][146]."
2530 DATA"HE WAS CURIOUS IN KNOWING A.WHO/B.WHOM [146]THE AUDITOR WAS."
2540 DATA"A"
2550 DATA" NON-ACTION VERB WAS [146] TAKES THE NOMINATIVE CASE."
2560 DATA"EACH OF THEM BELIEVES IN A.HIS/B.THEIR [146]POWER TO SELL THE GOODS.
2570 [131]"A"
2580 [131]" ANTECEDENT EACH WAIT ALWAYS TAKES A SINGULAR PRONOUN."
2590 [153]"SYSLOAD YOU HAVE DONE "R[170]W" QUESTIONS.WAIT":[141]591
2600 [153]" YOU HAVE "R" RIGHT AND "W" WRONG.":[141]591
2610 [153]" YOU HAVE "[181](100[172]R[173](R[170]W))"PERCENT CORRECT.":[141]592:[141]830
2670 [153]"LOAD YOU HAVE A CHOICE:
2672 PRINT" PRESS R [146] TO REPEAT THIS PROGRAM
2674 [153]" PRESS M WAIT TO RETURN TO THE MENU
2676 GETR$:IFR$<>"R"ANDR$<>"M"THEN2676
2678 IFR$="R"THENRESTORE:GOTO800
2682 PRINT"[147] RETURNING TO THE DISK MENU
2684 [147]"MENU",8
2686 [138]
2688 [128]
2700 [143] WHC 90:11:29